/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bbd.crawler;

import bbd.crawler.util.Console;

/**
 *
 * @author Amogh
 */
public class Main {

    //--------------------------------------------------------------------------
    /**
     * @param args the command line arguments
     */
    public static void main ( String[] args ) {

        Console.debug = true; // later make this parameter based control

        Console.message ("------------------------------------");
        Console.message ("BBD Crawler version 0.6 Beta");
        Console.message ("------------------------------------");
        Console.message ("");

        Console.message ("Using system proxy, if configured.");

        System.setProperty ( "java.net.useSystemProxies", "true" );

        Crawler crawler = new Crawler ();

        try {
        
            crawler.beginCrawl();
        }
        catch ( Exception ex ) {

            Console.error ( "Main.main", "(EXCEPTION) " + ex.getMessage() );
            Console.error ( "Main.main", "ENDING CRAWL" );
            // ex.printStackTrace();
        }

        Console.message ("");
        Console.message ("Crawl completed, exiting.");
        
    } // end function main

} // end class Main
